<template>
  <!-- 解除亲缘关系 -->
  <div class="touchblood-relation-container">
    <div class="touchblood-relation-title">
      <h1>解除亲缘关系</h1>
    </div>
    <div>
      <div class="table-list">
        <vx-table :tableData="tableData" :columns="columns"></vx-table>
        <div class="page">
          <p>解除亲缘关系客户总数：6个</p>
          <ui-pagination :total="total" :page-size="pageSize" :current-page="currentPage" :layout="layout" @current-change="handleCurrentChange">
          </ui-pagination>
        </div>
      </div>
    </div>
    <div style="text-align: center;">
      <ui-button @click="backpage">返回</ui-button>
      <ui-button type="primary" @click="">确认</ui-button>
    </div>
  </div>
</template>
<script>
import vxTable from '@/components/vx-table';
export default {
  components: {
    vxTable,
  },
  data() {
    return {
      total: 100,
      pageSize: 10,
      currentPage: 1,
      layout: 'total, prev, pager, next, jumper', // 分页顺序
      columns: [
        {
          prop: 'userName',
          label: '客户号',
          fixed: true,
          width: '120',
        },
        {
          prop: 'updatedBy',
          label: '客户名称',
          fixed: true,
        },
        {
          prop: 'updatedBy',
          label: '客户类型',
          fixed: true,
        },
        {
          prop: 'updatedBy',
          label: '所属机构',
          fixed: true,
        },
        {
          prop: 'updatedBy',
          label: '客户等级',
          fixed: true,
        },
        {
          prop: 'updatedBy',
          label: '主办客户经理',
          fixed: true,
        },
        {
          prop: 'updatedBy',
          label: '亲缘关系',
          fixed: true,
        },
      ],
      tableData: [],
    };
  },
  methods: {
    backpage() {
      this.$router.push({
        path: '/customerdivision/recycle/recyclesearch',
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.touchblood-relation-container {
  .touchblood-relation-title {
    overflow: hidden;
    h1,
    span {
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 20px;
    }
  }
  .table-list {
    .page {
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      p {
        width: 100%;
        text-align: left;
        margin-top: 20px;
        margin-bottom: 20px;
      }
    }
  }
}
</style>
